package org.sws.infrastructure.persistent.dao;

import cn.bugstack.middleware.db.router.annotation.DBRouter;
import cn.bugstack.middleware.db.router.annotation.DBRouterStrategy;
import org.apache.ibatis.annotations.Mapper;
import org.sws.infrastructure.persistent.po.RaffleActivityRecharge;

import java.util.List;

/**
* @author joyboy
* @description 针对表【raffle_activity_order(抽奖活动-抽奖单表)】的数据库操作Mapper
* @createDate 2025-03-18 11:55:37
* @Entity po.domain.RaffleActivityOrder
*/
@Mapper
@DBRouterStrategy(splitTable = true)
public interface IRaffleActivityRechargeDao {

    void insert(RaffleActivityRecharge raffleActivityRecharge);

    @DBRouter
    List<RaffleActivityRecharge> queryRaffleActivityOrderByUserId(String userId);

    @DBRouter
    RaffleActivityRecharge queryRaffleActivityRecharge(RaffleActivityRecharge raffleActivityRechargeRes);

    int updateOrderCompleted(RaffleActivityRecharge raffleActivityRecharge);

    @DBRouter
    RaffleActivityRecharge queryUnpaidActivityOrder(RaffleActivityRecharge raffleActivityOrderReq);
}




